package com.fuershiye.woman.monitor.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fuershiye.woman.monitor.beans.IdName;
import com.fuershiye.woman.monitor.dao.FormsDao;
import com.fuershiye.woman.monitor.model.Forms;
import com.fuershiye.woman.monitor.service.FormsService;

@Service("formsService")
public class FormsServiceImpl implements FormsService {

	@Autowired
	private FormsDao formsDao;

	@Override
	public void save(Forms forms) {
		formsDao.save(forms);
	}

	@Override
	public void delete(Long id) {
		formsDao.delete(id);
	}

	@Override
	public Forms get(Long id) {
		return formsDao.get(id);
	}

	@Override
	public List<Forms> getPage(String name, Integer page, Integer pageSize) {
		return formsDao.getPage(name, page, pageSize);
	}

	@Override
	public List<IdName> getAllNames() {
		return formsDao.getAllNames();
	}
	
}
